package com.wwg.market.ui.service.dto.member;

import com.wwg.market.ui.service.dto.BaseDto;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 *
 * @author gaoyang
 * @version $Id: $
 * @date 12-2-25 上午12:37
 */
public class MemberCardDto extends BaseDto {
    private String cardNo;//卡号
    private MemberDto owner;//持卡人
    private String password;
    private Double balance; //余额
    private Date createTime;//生成时间
    private Date expireTime;//过期时间
    private Boolean assigned; //分配状态
    private Boolean locked;//锁定状态
    private String operator;// 操作员(todo: id or name)
    private String batch;//批次

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public MemberDto getOwner() {
        return owner;
    }

    public void setOwner(MemberDto owner) {
        this.owner = owner;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Boolean getAssigned() {
        return assigned;
    }

    public void setAssigned(Boolean assigned) {
        this.assigned = assigned;
    }

    public Boolean getLocked() {
        return locked;
    }

    public void setLocked(Boolean locked) {
        this.locked = locked;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getBatch() {
        return batch;
    }

    public void setBatch(String batch) {
        this.batch = batch;
    }

    @Override
    public String toString() {
        return "MemberCardDto{" +
                "cardNo='" + cardNo + '\'' +
                ", owner=" + owner +
                ", password='" + password + '\'' +
                ", balance=" + balance +
                ", createTime=" + createTime +
                ", expireTime=" + expireTime +
                ", assigned=" + assigned +
                ", locked=" + locked +
                ", operator='" + operator + '\'' +
                ", batch='" + batch + '\'' +
                '}';
    }
}
